import request from '../utils/request'

// 获取隐患内容列表
export const getDangerList = (safeSearchDTO) => {
  return request.post('system/safe/list', safeSearchDTO)
}

// 隐藏隐患内容
export function hideDangerContent (safeId) {
  return request.post('system/safe/update', {}, {
    params: {
      safeId
    }
  })
}

// 删除隐患内容
export function deleteDangerContent (safeId) {
  return request.post('system/safe/delete', {}, {
    params: {
      safeId
    }
  })
}

// 查看隐患内容详情
export function dangerInfo (safeId) {
  return request.post('system/safe/info', {}, {
    params: {
      safeId
    }
  })
}
